<template>
  <div class="common-layout">
    <el-container>
      <!-- 左侧导航 -->
      <el-aside width="200px">
        <nav-menu></nav-menu>
      </el-aside>
      <!-- 右侧主题内容 -->
      <el-container>
        <!-- 头部Header -->
        <el-header>Header</el-header>
        <!-- 中间正文内容 -->
        <el-main>
          <router-view />
        </el-main>
        <!-- 底部footer -->
        <el-footer>Footer</el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import NavMenu from "@/components/home/NavMenu.vue";
import mynav from "@/components/home/nav.vue";
export default {
  name: "",
  components: { NavMenu, mynav },
  data() {
    return {};
  },
  created() {},
  computed: {},
  methods: {},
};
</script>
<style>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}
.el-aside {
  background-color: #d3dce6;
  color: #333;
  /*text-align:center;
  line-height: 200px;*/
  overflow: hidden;
}
.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 20px;
}
.el-menu {
  overflow: hidden;
  text-align: left;
}
body > .el-container {
  margin-bottom: 40px;
}
</style>
